package com.responsibility.ui;

import com.responsibility.bll.*;

public class Test {
    public static void main(String[] args) {
        Student stu = new Student("dsx", "少勋", 100);
        //构建责任链
        Harest harest = new Harest("校办", null);
        DeanOffice deanOffice = new DeanOffice("教务处", harest);
        Academy academy = new Academy("学院", deanOffice);
        Teacher teacher = new Teacher("陈开恩老师", academy);
        //学生开始请假
        teacher.handleRequest(stu);
    }
}
